home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
util
/
misc
/
chkdat11.lha
/
CheckDate.doc
< prev
next >
Wrap
Text File
|
1992-10-04
|
4KB
|
100 lines
CheckDate V1.100
COPYRIGHT
CheckDate is declared as Freeware, so anybody may use it without
any charge. You are welcome to give this program to your friends,
as long as you do not charge any money for it. All rights are
reserved, because I'll certainly publish a modified version in a
local computer magazine.
WHAT IS IT ?
CheckDate is a "real life utility". I wrote it after my machine
crashed and I worked several days with a date in 2002, which
caused some UUCP-Sites to crash. :-))
This is prevented by CheckDate now. When started for the first
time, CheckDate writes the current date to disk. From now on,
every time you start CheckDate, it will load that date and
compare it with the current in your real-time-clock. If the dates
differ by more than a specific number of days, CheckDate will
alert you.
USAGE
CheckDate recognizes the following parameters:
[Filename] [MaxDiff/N] [Install/S]
Filename - This is an optional parameter, which specifies
the path CheckDate saves the current date to.
If you leave out this one, the default path
("ENVARC:CHECKDATE") will be used.
MaxDiff - Using this optional parameter, you can change
the number of days that CheckDate considers is
a "normal" difference. Default is two days.
If the actual date is earlier than the last
saved one, CheckDate will alert you in any
case.
Install - The usage of this keyword forces CheckDate to
overwrite the last saved date without any
checking. This could be used once a wrong date
has been saved. To examine the stored date,
simply examine the datestamp of the datefile
(the contents of the datefile can't be typed
out).
INSTALLATION
The best way is to call CheckDate in one's User-Startup file, so
the date will be tested every time you boot your machine. (If you
do not use your Amiga very often, [Oh, bad guy!] increase the
maximum-day-difference!)
Guys who don't boot their machine very often, like Sysops, should
elect another place to call CheckDate. Use Cron to execute it
every day or include it in a batchfile you run regularly.
If the case appears and the date has been corrupted, CheckDate
sets the WARN-Flag, so you can easily correct the date directly
in the batchfile.
;-------------- Cut here---------
[...]
CheckDate
If WARN
Date <* ?
SetClock SAVE
EndIf
[...]
;-------------- Cut here---------
SYSTEM REQUIREMENTS
CheckDate requires OS V2.04 or higher.
THE AUTHOR
If you have any comments for me or just want to tell me that you
hate my program, don't hesitate to contact me on one of the
following addresses:
Snail-Mail: Peter Simons E-Mail: simons@peti.GUN.de (Usenet)
Europaring 20 2:242/7.25 (FIDO-Net)
D-5300 Bonn 1
Germany Voice: Tel. 0228 / 746061